﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AppCode/MasterPages/Admin.master" AutoEventWireup="true" CodeFile="AddPolicy.aspx.cs" Inherits="AppCode_Admin_AddPolicy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style1 {
            height: 22px;
        }
        .auto-style2 {
            height: 22px;
            width: 127px;
            margin-right:30px;
        }
        .auto-style3 {
            margin-left: 30px;
            width: 127px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div>
        <div style="width: 700px; margin: 0 auto; margin-left: 300px; margin-bottom:20px;">
            <p style="font-size: 19px; font-weight: bold; margin-top: 40px; margin-left: 120px; margin-bottom:20px;">Add Policy</p>
            <table style="border-spacing:30px 10px">
                <tr>
                    <td class="auto-style2">
                        <asp:Label ID="Label1" runat="server" Text="Policy Type Name"></asp:Label></td>
                    <td class="auto-style1">
                        <asp:TextBox ID="txtPolicyName" runat="server" Width="175px"></asp:TextBox>
                    </td>
                    <td class="auto-style1">
                        <asp:Label ID="Label2" runat="server" Text="    PolicyName is required" ForeColor="#CC0000"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">
                        <asp:Label ID="Label3" runat="server" Text="Policy Desc"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPolicyDesc" runat="server" Width="175px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label4" runat="server" Text="    Police Desc is required" ForeColor="#CC0000"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">
                        <asp:Label ID="Label5" runat="server" Text="Policy Amount"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPolicyAmount" runat="server" Width="175px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label6" runat="server" Text="    Policy Amount is required" ForeColor="#CC0000"></asp:Label>
                        <asp:Label ID="Label13" runat="server" Text="    Amount must be a number" ForeColor="#CC0000"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">
                        <asp:Label ID="Label7" runat="server" Text="Policy EMI"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPolicyEmi" runat="server" Width="175px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label8" runat="server" Text="    Policy EMI is required" ForeColor="#CC0000"></asp:Label>
                        <asp:Label ID="Label14" runat="server" Text="    Policy EMI must be a number" ForeColor="#CC0000"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">
                        <asp:Label ID="Label9" runat="server" Text="Company Name"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCompany" runat="server" Width="175px"></asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="Label10" runat="server" Text="    Company Name is required" ForeColor="#CC0000"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">
                        <asp:Label ID="Label11" runat="server" Text="Medical Id"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtMedical" runat="server" Width="175px"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label12" runat="server" Text="    Medical Id is required" ForeColor="#CC0000"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">
                        </td>
                    <td>
                        <asp:Button ID="btnApply" runat="server" Text="Add" Height="30px" OnClick="btnApply_Click1" Width="80px" /></td>
                </tr>
            </table>
            <p style="color:red;margin-left:150px; font-weight:bold" runat="server" id="success">Add Policy successfully</p>
        </div>
    </div>
</asp:Content>

